<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>权限界面</title>

    <link rel="stylesheet" href="../common/bootstrap/bootstrap.min.css">
    <link rel="stylesheet" href="../common/bootstrap/table/css/bootstrap-table.min.css">
    <link type="text/css" rel="stylesheet" href="../common/treeview/bootstrap-treeview.css">
    <link rel="stylesheet" href="../common/css/common.css">
    <link type="text/css" rel="stylesheet" href="../common/toastr/toastr.min.css">




</head>

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    增加权限信息
                </h4>
            </div>
            <div class="modal-body">
                <form id="roleForm">
                    <div class="row">

                        <div class="col-md-4">
                            <div class="form-group input-group">
                                <span class="input-group-addon">职位名称</span>
                                <input class="form-control" placeholder="职位名称" name="roleName" id="roleName">
                            </div>
                        </div>
                        <div class="col-md-4">
                            <div class="form-group input-group">
                                <span class="input-group-addon">职位描述</span>
                                <input class="form-control" placeholder="职位描述" name="description" id="description">
                            </div>
                        </div>
                        <div class="col-md-4">
                            <div class="form-group input-group">
                                <span class="input-group-addon">角色状态</span>
                                <select class="form-control" id="status" name="status">
                                    <option value="0">禁用</option>
                                    <option value="1">启用</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-md-4">
                            <div class="form-group input-group" style="display: none">
                                <span class="input-group-addon">职位名称</span>
                                <input class="form-control" placeholder="职位ID" name="roleId" id="roleId">
                            </div>
                        </div>

                    </div>

                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="aaa()">
                    确认
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>


<!-- 权限树的模态框 -->

<!-- 模态框（Modal） -->
<div class="modal fade" id="myModaltree" tabindex="-1" role="dialog" aria-labelledby="myModalLabeltree" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×
                </button>
                <h4 class="modal-title" id="myModalLabeltree">
                    权限分配
                </h4>
            </div>
            <div class="modal-body">

                <div id="tree1"></div>


            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">
                    关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="roleTree.setTreeList()">
                    确认
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->


<body>






<div class="form-groupd">
    <label for="searchName" class="label-control">职位名称</label>
    <input type="text" class="form-control" id="searchName" placeholder="职位名称">
</div>
<button type="button" class="btn btn-primary" onclick="roleManage.search()">搜索</button>
<button type="button" class="btn btn-primary" onclick="addRole()">添加</button>

<div class="tab-pane">
    <table class="table table-striped table-hover table-bordered" id="roleList">
        <thead style="background-color: #BEDDFA">

        </thead>
    </table>
</div>

<!-- system modal start -->
<div id="ycf-alert" class="modal">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
                <h5 class="modal-title"><i class="fa fa-exclamation-circle"></i> [Title]</h5>
            </div>
            <div class="modal-body">
                <p>[Message]</p>
            </div>
            <div class="modal-footer">
                <center>
                    <button type="button" class="btn btn-primary ok" data-dismiss="modal">[BtnOk]</button>
                    <button type="button" class="btn btn-default cancel" data-dismiss="modal">[BtnCancel]</button>
                </center>
            </div>
        </div>
    </div>
</div>





</body>
<script type="text/javascript" src="../common/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="../common/bootstrap/bootstrap.min.js"></script>
<script type="text/javascript" src="../common/bootstrap/table/js/bootstrap-table.min.js"></script>
<script type="text/javascript" src="../common/bootstrap/table/js/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="../common/toastr/toastr.min.js"></script>
<script type="text/javascript" src="../common/confirm/bootstrap.confirm.js"></script>
<script type="text/javascript" src="../common/treeview/bootstrap-treeview.js"></script>
<script type="text/javascript" src="../common/validate/bootstrapValidator.min.js"></script>
<script type="text/javascript" src="../common/js/role/list.js"></script>
<script type="text/javascript" src="../common/js/role/add.js"></script>
<script type="text/javascript" src="../common/js/role/tree.js"></script>
</html>